home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / gcc-lib / i486-unknown-sco3.2v5.0.0elf / 2.6-95q2 / include / oldstyle / pwd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-12  |  2.0 KB  |  89 lines

  1. /*
  2.  *   Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
  3.  *        All Rights Reserved.
  4.  *
  5.  *    The information in this file is provided for the exclusive use of
  6.  *    the licensees of The Santa Cruz Operation, Inc.  Such users have the
  7.  *    right to use, modify, and incorporate this code into other products
  8.  *    for purposes authorized by the license agreement provided they include
  9.  *    this notice and the associated copyright notice with any such product.
  10.  *    The information in this file is provided "AS IS" without warranty.
  11.  */
  12.  
  13. /*    Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
  14. /*    Portions Copyright (c) 1979 - 1990 AT&T   */
  15. /*      All Rights Reserved   */
  16.  
  17. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF          */
  18. /*    UNIX System Laboratories, Inc.                          */
  19. /*    The copyright notice above does not evidence any        */
  20. /*    actual or intended publication of such source code.     */
  21.  
  22. #ifndef _PWD_H
  23. #ifndef _PARAMS
  24. #if defined(__STDC__) || defined(__cplusplus)
  25. #define _PARAMS(ARGS) ARGS
  26. #else
  27. #define _PARAMS(ARGS) ()
  28. #endif
  29. #endif /* _PARAMS */
  30. #define _PWD_H
  31.  
  32. #ident "oldstyle @(#) pwd.h 20.1 94/12/04 "
  33.  
  34.  
  35. #include <sys/types.h>
  36.  
  37. /*
  38.  * Note, packing necessary to keep compatibility with old
  39.  * DS's
  40.  */
  41.  
  42. #pragma pack(4)
  43.  
  44. struct passwd
  45. {
  46.     char    *pw_name;
  47.     char    *pw_passwd;
  48.     uid_t    pw_uid;
  49.     short    __pad1; /* Dependent on size of uid_t !!!! */
  50.     gid_t    pw_gid;
  51.     short    __pad2; /* Dependent on size of uid_t !!!! */    
  52.     char    *pw_age;
  53.     char    *pw_comment;
  54.     char    *pw_gecos;
  55.     char    *pw_dir;
  56.     char    *pw_shell;
  57. };
  58.  
  59.  
  60. #ifndef _STRUCT_COMMENT
  61. #define _STRUCT_COMMENT
  62. struct comment
  63. {
  64.     char    *c_dept;
  65.     char    *c_name;
  66.     char    *c_acct;
  67.     char    *c_bin;
  68. };
  69. #endif
  70.  
  71.  
  72.  
  73. extern struct passwd    *getpwuid _PARAMS((unsigned short ));
  74. extern struct passwd    *getpwnam _PARAMS((const char *));
  75.  
  76.  
  77. extern struct passwd    *getpwent();
  78. extern void    setpwent();
  79. extern void    endpwent();
  80. extern struct passwd    *fgetpwent _PARAMS((FILE *));
  81. extern int    putpwent _PARAMS((const struct passwd *, FILE *));
  82.  
  83.  
  84.  
  85.  
  86. #pragma pack()
  87.  
  88. #endif /* _PWD_H */
  89.